.horizontal-gradient {
  background: #296ad4;
  background: -moz-linear-gradient(left,  #296ad4 0%, #4e8ef7 100%);
  background: -webkit-gradient(linear, left top, right top, color-stop(0%,#296ad4), color-stop(100%,#4e8ef7));
  background: -webkit-linear-gradient(left,  #296ad4 0%,#4e8ef7 100%);
  background: -o-linear-gradient(left,  #296ad4 0%,#4e8ef7 100%);
  background: -ms-linear-gradient(left,  #296ad4 0%,#4e8ef7 100%);
  background: linear-gradient(to right,  #296ad4 0%,#4e8ef7 100%);
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fadeIn {
  opacity: 0;
  -webkit-animation: fadeIn ease-in 750ms;
  -moz-animation: fadeIn ease-in 750ms;
  animation: fadeIn ease-in 750ms;
  -webkit-animation-fill-mode: forwards;
  -moz-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-delay: 500ms;
  /* Chrome, Safari, Opera */
  animation-delay: 500ms;
}


.white-nav-bar {
  .navbar-default {
    background: white;
  }

  &.products-page .products-nav {
    color: $brand-primary !important;
    border-top-color: $brand-primary !important;
  }

  .navbar-default .navbar-nav > li > a {
    &:hover {
      color: #303030 !important;
      border-top-color: #303030 !important;
      font-weight:bold;
    }
  }

}

.navbar-default .navbar-nav > .dropdown > a .caret {
  border-top-color: #abc0f5;
  border-bottom-color: #abc0f5;
}
.navbar-default .navbar-nav > li.dropdown > a:hover .caret {
  border-top-color: #fff;
  border-bottom-color: #fff;
}
.navbar-nav > li > .dropdown-menu {
  display: block !important;
  pointer-events: none;

  opacity: 0;
  -webkit-transform: scale(.5);//translateX(-50%)translateY(-20px);
  -ms-transform: scale(.5);//translateX(-50%)translateY(-20px);
  transform: scale(.5);//translateX(-50%)translateY(-20px);
  -webkit-transform-origin: 80px 0;
  -ms-transform-origin: 80px 0;
  transform-origin: 80px 0;
  transition: all 200ms cubic-bezier(.24,.22,.015,1.56),opacity 100ms linear;

}
.navbar-nav > li.dropdown.open > .dropdown-menu {
  -webkit-transform: scale(1);//translateX(-50%);
  -ms-transform: scale(1);//translateX(-50%);
  transform: scale(1); //translateX(-50%);
  opacity: 1;
  pointer-events: auto;
}
.navbar-nav > li > .dropdown-menu .arrow-up {
  position: absolute;
  top: -10px;
  right: 20px;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid white;
}
.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
  background: transparent;
}

.navbar-nav > li > .dropdown-menu {
  border: none;
  box-shadow: 1px 1px 7px rgba(0,0,0,0.3);
  border-radius: 3px;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
  color: darken(white, 10%);
}

.navbar .dropdown-menu > li > a {
  color: #677184;
  font-size: 14px;

  padding-top: 8px;
  padding-bottom: 8px;

  font-family: "AvenirNextLTPro-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;

  &:hover, &:active, &:focus {
    background-color: #EFF1F5;
    color: #677184 !important;
    border: none !important;
  }
}

.navbar-default .navbar-nav > li > a {
  margin: 0;
  padding-right: 22px !important;
  padding-left: 22px !important;
  border-top: 3px solid transparent;
  color: #303030;
  opacity: .6;
  transition-duration: .25s;

  @media (max-width: 991px) {
    padding-right: 13px !important;
    padding-left: 13px !important;
  }

  &:hover {
    color: white;
  }
}

.navbar-default .navbar-collapse .navbar-nav > li > a:hover {
  border-top: 3px solid #303030;
}

.navbar-default .navbar-toggle {
  margin-top: 17px;
  padding: 0;
  border: none;
  color: white;
  font-size: 32px;
  opacity: .7;

  &:hover, &:focus {
    background: none;
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .navbar-default .navbar-collapse {
    margin-bottom: 20px;
    border: none;
    background: #2155aa;
    background: -moz-linear-gradient(left,  #2155aa 0%, #3e72c6 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#2155aa), color-stop(100%,#3e72c6));
    background: -webkit-linear-gradient(left,  #2155aa 0%,#3e72c6 100%);
    background: -o-linear-gradient(left,  #2155aa 0%,#3e72c6 100%);
    background: -ms-linear-gradient(left,  #2155aa 0%,#3e72c6 100%);
    background: linear-gradient(to right,  #2155aa 0%,#3e72c6 100%);
  }
  .navbar-default .navbar-collapse .navbar-nav > li > a:hover {
    border-color: transparent !important;
  }
}

@media (min-width: 768px) {
  .docs-page .docs-nav,
  .examples-page .examples-nav,
  .getting-started-page .getting-started-nav,
  .nav-link:hover,
  .nav-link:focus {
    color: #303030 !important;
    opacity: .6;
  }
  .docs-page.getting-started-page .docs-nav {
    border-color: transparent !important;
    color: #303030 !important;
    opacity: .6;
  }
}

.headline {
  position: absolute;
  padding: 10px;
  width: 100%;
  background-color: $brand-primary;
  color: white;
  text-align: center;
  a {
    color: inherit;
    text-decoration: underline;
    opacity: 1;
    &:hover {
      text-decoration: none;
    }
  }
}

.header {
  position: relative;
  padding: 24px 0 0 0;
  height: 200px;
  // z-index: 1000;

  background-position: 0 -76px;

  h3 {
    color: #303030;
    font-size: 28px;
    font-family: "AvenirNextLTPro-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  h4 {
    color: #303030;
    font-family: "AvenirNextLTPro-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
    opacity: .8;
  }
  ul {
    position: absolute;
    top: 133px;
    margin: 0;
    padding: 0;
  }
  li {
    float: left;
    margin: 0 5px;
    list-style: none;
    font-size: 14px;
    font-family: $font-family-regular;
    &:first-child {
      a {
        padding-left: 0;
      }
    }
  }
  a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    font-weight: bold;
  }

  .heading-tile {
    background-position: 0 -80px;
  }
}

.search-col {
  display: none;
}

@media (min-width: 768px) {
  .search-col {
    display: block;
  }
}

.search-bar {
  visibility: hidden;
  float: right;
  padding: 0 2px 0 8px;
  border: none;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.3);
  transition: background ease-in-out 150ms;

  &.active {
    background: rgba(255, 255, 255, 0.7);

    .search-icon,
    input {
      color: #296AD4;
    }
  }

  .search-icon {
    padding-top: 4px;
    color: white;

    i {
      padding-top: 4px;
    }
  }

  input {
    padding-left: 4px;
    width: 200px;
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    -webkit-appearance: none;

    &:focus {
      outline: none;
    }
  }
}

.search-results {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 9999;
  opacity: 0;
  padding: 40px 0;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  transition: opacity ease-in-out 100ms;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  h4 {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid $brand-primary;
    color: $brand-primary;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-family: "AvenirNextLTPro-Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }

  ul {
    margin: 0 0 0 -10px;
    padding: 0;
  }

  li {
    display: inline-block;
    overflow: hidden;
    margin: 0;
    padding: 1px 0 1px 10px;
    width: 100%;
    list-style-type: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 22px;

    a {
      color: #666;
      &:hover {
        color: $brand-primary;
      }
    }
  }

}

.search-section {
  float: left;
  padding-left: 40px;
  width: 25%;
}

.search-api {
  padding-left: 0;
  width: 49%;

  li {
    width: 32%;
  }
}

#search-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  background: black;
  opacity: 0;
  transition: opacity ease-in-out 100ms;
}

.search-open {

  .search-results {
    opacity: 1;
  }
  #search-overlay {
    opacity: .1;
  }

}

.navbar-header {
  .paper-tag,
  .beta-tag {
    padding-top: 22px;
    margin-left: 15px;
    display: inline-block;
    float: left;
  }

  .beta-tag {
    top: -2px;
    margin-left: 25px;
    position: relative;
    &:before {
      content: '';
      background: rgba(white, .2);
      position: absolute;
      height: 30px;
      width: 2px;
      left: -15px;
      transform: skewX(-15deg);
    }
  }
}


.snap-bar {
  /*display: none;*/
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  z-index: 1000;

  /*
  margin-top: -50px;

  -webkit-transform: translate(0, -50px);
  transform: translate(0, -50px);
  */


  /*
  background-color: #EDF0F7;
  */
  background-color: #272E3A;
  color: #B1BAC7;
  font-weight: 300;

  text-align: center;
  font-size: 16px;

  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}
.snap-bar a {

}

.snap-bar .small {
  display: none;
}

.span-bar span {
  display: inline-block;
  vertical-align: middle;
}

.snap-bar.active {

  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);

  margin-top: 0;
}

@media (max-width: 767px) {
  .snap-bar .small {
    display: inline-block;
  }
  .snap-bar .large {
    display: none;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .hide-sm {
    display: none !important;
  }
}
